Ext.define('DragonApp.store.Othersprop', {
    extend: 'Ext.data.Store',

    alias: 'store.othersprops',
    model: 'DragonApp.model.Othersprop',
    proxy: {
      type: 'ajax',
      url : './resources/json/acc_dragon_prop.json',
      reader: {
        type: 'json',
        rootProperty: 'RECORDS'
      }
    },
    filters: [
      function(item) {
        return item.getData().type == '4';
      }
    ],
    autoLoad:true,
    listeners: {

      exception: function(proxy, response, operation){
        DragonApp.util.Msg.showErrorMsg(response);
      },

      load: {
        /**
         *@example
         *var param = [
                {'store':Ext.create('DragonApp.store.Quality'),'field_s':'quality','field_m':'id','field_v':'name'},
                {'store':Ext.create('DragonApp.store.MonsterLocation'),'field_s':'location','field_m':'id','field_v':'name'}];

          var myFun = DragonApp.util.Util.transStore(param);
         * @type {Function}
         */
        fn: DragonApp.util.Util.transStore([
                {'store':Ext.create('DragonApp.store.HeroCareer'),'field_s':'career','field_m':'id','field_v':'name'},
                {'store':Ext.create('DragonApp.store.HeroPropPosition'), 'field_s':'position','field_m':'id','field_v':'name'}])
      }
    }
 });